require "migration_helpers"
class CreateCreators < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :creators do |t|
      t.column :name, :string
      t.column :create_type_id, :integer
      t.column :meta_id, :integer
    end
    foreign_key(:creators, :create_type_id, :create_types)
    foreign_key(:creators, :meta_id, :metas)
  end

  def self.down
    drop_table :creators
  end
end
